package com.sc.pojo;

import java.util.HashSet;
import java.util.Set;

public class Employee {
    private Integer eid;

    private String ecode;

    private String ename;

    private String egrade;

    private Integer eage;

    private String ephone;

    private String eidcard;

    private String eusername;

    private String epassword;

    private String eemail;

    private String eheadimage;

    private Integer eisfirst;

    private Integer eonjob;

    private Integer rank;

    private Set<WorkLoad> set = new HashSet<WorkLoad>();

    private Set<BuyHoueSave> setBuyHouse = new HashSet<BuyHoueSave>();

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getEcode() {
        return ecode;
    }

    public void setEcode(String ecode) {
        this.ecode = ecode;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getEgrade() {
        return egrade;
    }

    public void setEgrade(String egrade) {
        this.egrade = egrade;
    }

    public Integer getEage() {
        return eage;
    }

    public void setEage(Integer eage) {
        this.eage = eage;
    }

    public String getEphone() {
        return ephone;
    }

    public void setEphone(String ephone) {
        this.ephone = ephone;
    }

    public String getEidcard() {
        return eidcard;
    }

    public void setEidcard(String eidcard) {
        this.eidcard = eidcard;
    }

    public String getEusername() {
        return eusername;
    }

    public void setEusername(String eusername) {
        this.eusername = eusername;
    }

    public String getEpassword() {
        return epassword;
    }

    public void setEpassword(String epassword) {
        this.epassword = epassword;
    }

    public String getEemail() {
        return eemail;
    }

    public void setEemail(String eemail) {
        this.eemail = eemail;
    }

    public String getEheadimage() {
        return eheadimage;
    }

    public void setEheadimage(String eheadimage) {
        this.eheadimage = eheadimage;
    }

    public Integer getEisfirst() {
        return eisfirst;
    }

    public void setEisfirst(Integer eisfirst) {
        this.eisfirst = eisfirst;
    }

    public Integer getEonjob() {
        return eonjob;
    }

    public void setEonjob(Integer eonjob) {
        this.eonjob = eonjob;
    }

    public Integer getRank() {
        return rank;
    }

    public void setRank(Integer rank) {
        this.rank = rank;
    }

    public Set<WorkLoad> getSet() {
        return set;
    }

    public void setSet(Set<WorkLoad> set) {
        this.set = set;
    }

    public Set<BuyHoueSave> getSetBuyHouse() {
        return setBuyHouse;
    }

    public void setSetBuyHouse(Set<BuyHoueSave> setBuyHouse) {
        this.setBuyHouse = setBuyHouse;
    }

    /**
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Employee [eid=" + eid + ", ecode=" + ecode + ", ename=" + ename + ", egrade=" + egrade + ", eage="
                + eage + ", ephone=" + ephone + ", eidcard=" + eidcard + ", eusername=" + eusername + ", epassword="
                + epassword + ", eemail=" + eemail + ", eheadimage=" + eheadimage + ", eisfirst=" + eisfirst
                + ", eonjob=" + eonjob + ", rank=" + rank + "]";
    }

    public Employee(Integer eid, String ecode, String ename, String egrade, Integer eage, String ephone,
            String eidcard, String eusername, String epassword, String eemail, String eheadimage, Integer eisfirst,
            Integer eonjob, Integer rank) {
        super();
        this.eid = eid;
        this.ecode = ecode;
        this.ename = ename;
        this.egrade = egrade;
        this.eage = eage;
        this.ephone = ephone;
        this.eidcard = eidcard;
        this.eusername = eusername;
        this.epassword = epassword;
        this.eemail = eemail;
        this.eheadimage = eheadimage;
        this.eisfirst = eisfirst;
        this.eonjob = eonjob;
        this.rank = rank;
    }

    public Employee() {

        super();
        // Auto-generated constructor stub

    }

    public Employee(Integer eid, String ephone, String eusername, String epassword, String eemail, String eheadimage) {
        super();
        this.eid = eid;
        this.ephone = ephone;
        this.eusername = eusername;
        this.epassword = epassword;
        this.eemail = eemail;
        this.eheadimage = eheadimage;
    }
}